
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGSwitch.h>
#include <OpenSG/OSGSwitchBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Switch_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Switch()
{
    scope* osg_SwitchBase_scope = new scope(
    class_< osg::SwitchBase, bases< osg::Group > , boost::noncopyable >("SwitchBase", no_init)
//        .def_readonly("ChoiceFieldMask", &osg::SwitchBase::ChoiceFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::SwitchBase::MTInfluenceMask)
        .def("getClassType", &osg::SwitchBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::SwitchBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::SwitchBase::*)() )&osg::SwitchBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::SwitchBase::*)() const)&osg::SwitchBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::SwitchBase::getContainerSize)
        //.def("getChoice", (osg::Int32& (osg::SwitchBase::*)() )&osg::SwitchBase::getChoice, return_value_policy< copy_const_reference >())
        .def("getChoice", (const osg::Int32& (osg::SwitchBase::*)() const)&osg::SwitchBase::getChoice, return_value_policy< copy_const_reference >())
        .def("setChoice", &osg::SwitchBase::setChoice)
        .def("getBinSize", &osg::SwitchBase::getBinSize)
        .def("copyToBin", &osg::SwitchBase::copyToBin)
        .def("copyFromBin", &osg::SwitchBase::copyFromBin)
        .def("create", &osg::SwitchBase::create)
        .def("createEmpty", &osg::SwitchBase::createEmpty)
        .def("shallowCopy", &osg::SwitchBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::SwitchBase::NextFieldId;
    scope().attr("ChoiceFieldId") = (int)osg::SwitchBase::ChoiceFieldId;

    delete osg_SwitchBase_scope;

    scope* osg_Switch_scope = new scope(
    class_< osg::Switch, bases< osg::SwitchBase > , boost::noncopyable, osg::SwitchRefPtr >("Switch", no_init)
        .def("changed", &osg::Switch::changed)
        .def("dump", &osg::Switch::dump, osg_Switch_dump_overloads_0_2())
    );

    scope().attr("ALL") = (int)osg::Switch::ALL;
    scope().attr("NONE") = (int)osg::Switch::NONE;

    delete osg_Switch_scope;


    register_ptr_to_python<osg::SwitchPtr>();
    implicitly_convertible<osg::SwitchRefPtr, osg::SwitchPtr>();
    implicitly_convertible<osg::SwitchPtr, osg::GroupPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::SwitchPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::SwitchPtr>);
}

